package com.study.mapper;

import com.study.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Auther: Think
 * @Date: 2023/4/15 13:06
 * @Description:
 */
@Mapper
public interface AccountDao {

    @Select("select * from t_account where id = #{fromUserId} ")
    Account getOne(int fromUserId);

    @Update("update t_account set balance = #{balance} where id = #{id}")
    void save(Account fromUserAccount);
}
